home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpinstall / nsIXPINotifier.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  150 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIXPINotifier.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIXPINotifier_h__
  6. #define __gen_nsIXPINotifier_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIXPIListener */
  19. #define NS_IXPILISTENER_IID_STR "eea90d40-b059-11d2-915e-c12b696c9333"
  20.  
  21. #define NS_IXPILISTENER_IID \
  22.   {0xeea90d40, 0xb059, 0x11d2, \
  23.     { 0x91, 0x5e, 0xc1, 0x2b, 0x69, 0x6c, 0x93, 0x33 }}
  24.  
  25. class NS_NO_VTABLE nsIXPIListener : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXPILISTENER_IID)
  29.  
  30.   /* void onInstallStart (in wstring URL); */
  31.   NS_IMETHOD OnInstallStart(const PRUnichar *URL) = 0;
  32.  
  33.   /* void onInstallDone (in wstring URL, in long status); */
  34.   NS_IMETHOD OnInstallDone(const PRUnichar *URL, PRInt32 status) = 0;
  35.  
  36.   /* void onPackageNameSet (in wstring URL, in wstring UIPackageName, in wstring version); */
  37.   NS_IMETHOD OnPackageNameSet(const PRUnichar *URL, const PRUnichar *UIPackageName, const PRUnichar *version) = 0;
  38.  
  39.   /* void onItemScheduled (in wstring message); */
  40.   NS_IMETHOD OnItemScheduled(const PRUnichar *message) = 0;
  41.  
  42.   /* void onFinalizeProgress (in wstring message, in long itemNum, in long totNum); */
  43.   NS_IMETHOD OnFinalizeProgress(const PRUnichar *message, PRInt32 itemNum, PRInt32 totNum) = 0;
  44.  
  45.   /* void onLogComment (in wstring comment); */
  46.   NS_IMETHOD OnLogComment(const PRUnichar *comment) = 0;
  47.  
  48. };
  49.  
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_NSIXPILISTENER \
  52.   NS_IMETHOD OnInstallStart(const PRUnichar *URL); \
  53.   NS_IMETHOD OnInstallDone(const PRUnichar *URL, PRInt32 status); \
  54.   NS_IMETHOD OnPackageNameSet(const PRUnichar *URL, const PRUnichar *UIPackageName, const PRUnichar *version); \
  55.   NS_IMETHOD OnItemScheduled(const PRUnichar *message); \
  56.   NS_IMETHOD OnFinalizeProgress(const PRUnichar *message, PRInt32 itemNum, PRInt32 totNum); \
  57.   NS_IMETHOD OnLogComment(const PRUnichar *comment); 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  60. #define NS_FORWARD_NSIXPILISTENER(_to) \
  61.   NS_IMETHOD OnInstallStart(const PRUnichar *URL) { return _to OnInstallStart(URL); } \
  62.   NS_IMETHOD OnInstallDone(const PRUnichar *URL, PRInt32 status) { return _to OnInstallDone(URL, status); } \
  63.   NS_IMETHOD OnPackageNameSet(const PRUnichar *URL, const PRUnichar *UIPackageName, const PRUnichar *version) { return _to OnPackageNameSet(URL, UIPackageName, version); } \
  64.   NS_IMETHOD OnItemScheduled(const PRUnichar *message) { return _to OnItemScheduled(message); } \
  65.   NS_IMETHOD OnFinalizeProgress(const PRUnichar *message, PRInt32 itemNum, PRInt32 totNum) { return _to OnFinalizeProgress(message, itemNum, totNum); } \
  66.   NS_IMETHOD OnLogComment(const PRUnichar *comment) { return _to OnLogComment(comment); } 
  67.  
  68. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  69. #define NS_FORWARD_SAFE_NSIXPILISTENER(_to) \
  70.   NS_IMETHOD OnInstallStart(const PRUnichar *URL) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnInstallStart(URL); } \
  71.   NS_IMETHOD OnInstallDone(const PRUnichar *URL, PRInt32 status) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnInstallDone(URL, status); } \
  72.   NS_IMETHOD OnPackageNameSet(const PRUnichar *URL, const PRUnichar *UIPackageName, const PRUnichar *version) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnPackageNameSet(URL, UIPackageName, version); } \
  73.   NS_IMETHOD OnItemScheduled(const PRUnichar *message) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemScheduled(message); } \
  74.   NS_IMETHOD OnFinalizeProgress(const PRUnichar *message, PRInt32 itemNum, PRInt32 totNum) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFinalizeProgress(message, itemNum, totNum); } \
  75.   NS_IMETHOD OnLogComment(const PRUnichar *comment) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnLogComment(comment); } 
  76.  
  77. #if 0
  78. /* Use the code below as a template for the implementation class for this interface. */
  79.  
  80. /* Header file */
  81. class nsXPIListener : public nsIXPIListener
  82. {
  83. public:
  84.   NS_DECL_ISUPPORTS
  85.   NS_DECL_NSIXPILISTENER
  86.  
  87.   nsXPIListener();
  88.  
  89. private:
  90.   ~nsXPIListener();
  91.  
  92. protected:
  93.   /* additional members */
  94. };
  95.  
  96. /* Implementation file */
  97. NS_IMPL_ISUPPORTS1(nsXPIListener, nsIXPIListener)
  98.  
  99. nsXPIListener::nsXPIListener()
  100. {
  101.   /* member initializers and constructor code */
  102. }
  103.  
  104. nsXPIListener::~nsXPIListener()
  105. {
  106.   /* destructor code */
  107. }
  108.  
  109. /* void onInstallStart (in wstring URL); */
  110. NS_IMETHODIMP nsXPIListener::OnInstallStart(const PRUnichar *URL)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* void onInstallDone (in wstring URL, in long status); */
  116. NS_IMETHODIMP nsXPIListener::OnInstallDone(const PRUnichar *URL, PRInt32 status)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* void onPackageNameSet (in wstring URL, in wstring UIPackageName, in wstring version); */
  122. NS_IMETHODIMP nsXPIListener::OnPackageNameSet(const PRUnichar *URL, const PRUnichar *UIPackageName, const PRUnichar *version)
  123. {
  124.     return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126.  
  127. /* void onItemScheduled (in wstring message); */
  128. NS_IMETHODIMP nsXPIListener::OnItemScheduled(const PRUnichar *message)
  129. {
  130.     return NS_ERROR_NOT_IMPLEMENTED;
  131. }
  132.  
  133. /* void onFinalizeProgress (in wstring message, in long itemNum, in long totNum); */
  134. NS_IMETHODIMP nsXPIListener::OnFinalizeProgress(const PRUnichar *message, PRInt32 itemNum, PRInt32 totNum)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138.  
  139. /* void onLogComment (in wstring comment); */
  140. NS_IMETHODIMP nsXPIListener::OnLogComment(const PRUnichar *comment)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* End of implementation class template. */
  146. #endif
  147.  
  148.  
  149. #endif /* __gen_nsIXPINotifier_h__ */
  150.